package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 *
 * @author Yangqianyong
 * @email sunlightcs@gmail.com
 * @date 2021-11-17 15:35:51
 */
@Data
@TableName("shop_repertory")
public class RepertoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 商品库存ID
	 */
	@TableId
	private Integer repertoryId;
	/**
	 * 商品ID
	 */
	private Long productId;
	/**
	 * 当前商品数量
	 */
	private Integer currentCnt;
	/**
	 * 就近一次进货日期
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date repertoryTime;
	/**
	 * 是否该进货
	 */
	private Integer repertoryStock;

}
